import { createStore } from 'vuex'
import {setLocal, getLocal} from '@/utils/storage'
export default createStore({
  state: {
    user:getLocal('user')
  },
  mutations: {
     setUser(state,data){
      state.user=data
      setLocal('user',data)
    
    }
  },

  actions: {
  },
  modules: {
  }
})
